-
Notifications
You must be signed in to change notification settings - Fork 51
Conversation
debuglet = new Debuglet(fakeDebug, config, logger); | ||
|
||
debuglet.once('initError', function(err) { | ||
assert(err); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -195,11 +205,88 @@ describe(__filename, function(){ | |||
debuglet.start(); | |||
}); | |||
|
|||
it('should de-activate when the server responds with isDisabled'); | |||
it('should de-activate when the server responds with isDisabled', function(done) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
debuglet.start(); | ||
}); | ||
|
||
it('should re-register when registration expires', function(done) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM w/ nits.
}); | ||
|
||
debuglet.once('registered', function(id) { | ||
assert(id === DEBUGGEE_ID); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
debuglet.once('registered', function(id) { | ||
assert(id === DEBUGGEE_ID); | ||
setImmediate(function() { | ||
assert(debuglet.fetcherActive_); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
}); | ||
|
||
setTimeout(function() { | ||
assert(!debuglet.fetcherActive_); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
No description provided.